package cn.lzh.service;
;


import cn.lzh.entity.Order;
import cn.lzh.entity.Orditem;
import cn.lzh.entity2.ItemBook;
import cn.lzh.entity2.OrdInfo;
import cn.lzh.entity2.OrderLine;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderService {
    void addOrdItem(Order ord, List<Orditem> items);

    List<OrdInfo> findOrdAndItemsByUid(int uid, int ispay, Date tstart, Date tend);

    void updateOrdAddr(Order ord);

    void updateOrdPay(Order ord);

    void updateOrdShip(Order ord);

    Order findOrderById(int ordid);

    List<ItemBook> findItemBookByOrdid(int ordid);

    List<OrderLine> findOrdLines(Map<String, Object> map);

    int getCount(Map<String, Object> map);

    OrdInfo findOrdAndItemsByOrdid(int uid, int ordid);

    List<Map<String, Object>> findItemInfoByOrdid(int ordid);

}
